﻿<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1">
    <title>@ViewBag.Title</title>
    @Styles.Render("~/Content/" + LineOfBusiness.Core.Helper.CacheHelper.LoginUser.Theme + "/css")
    @Scripts.Render("~/scripts/js")






    <style type="text/css">
    body
    {
        background: #fff;
        font-family: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.Font;
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.FontSize;
        color: @(LineOfBusiness.Core.Helper.CacheHelper.LoginUser.MetroStyle ? new MvcHtmlString("black;") : new MvcHtmlString("#666666;"))  
        margin: 0;
        padding: 0;
        overflow:hidden;


    }

    .ModuleTitle 
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.ModuleTitleSize();
    }

    .ModuleTitleLeft
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.ModuleTitleSize();
    }

    .GroupTitle
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.GroupTitleSize();
    }
        
    .mtitle
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.FormTitle();
        padding-left: 10px;
        padding-top: 10px;
        color: #0000FF;
        clear: both;
    }

    .ApplicationTitle
    {
        font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.ApplicationTitle();
    }

    .buttons button {
	    font-size: @LineOfBusiness.Core.Helper.CacheHelper.LoginUser.FontSize;
    }
        
        
    @if (LineOfBusiness.Core.Helper.CacheHelper.LoginUser.MetroStyle)
    {
        @: .borderRequired {
        @:        border-radius: 0px !important;
        @:    }

        
        @: .k-block, .k-widget, .k-popup, .k-content, .k-dropdown .k-input, .tdLabel, .k-header,.k-block, .k-widget, .k-popup, .k-content, .k-dropdown .k-input,
        @: .k-input, input.k-textbox, textarea.k-textbox, input.k-textbox:hover, textarea.k-textbox:hover, .k-textbox>input {
        @: color:#0e0549 !important
        @: }
    }
        @LineOfBusiness.Controls.Extensions.HtmlExtensions.Assets(Html).RenderHtmlString()
    </style>

</head>
<body>
    <script>
        var idWindow = $.getUrlVar('id');
        var ObjectControl = '{ "data":[';

        @{
            MvcHtmlString sJSON = null;
            if (Model != null)
            {
                Newtonsoft.Json.JsonSerializerSettings ss = new Newtonsoft.Json.JsonSerializerSettings();
                ss.PreserveReferencesHandling = Newtonsoft.Json.PreserveReferencesHandling.None;
                ss.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
                ss.ContractResolver = new LineOfBusiness.Core.Utilities.TopLevelContractResolver();
                
                sJSON = MvcHtmlString.Create(Newtonsoft.Json.JsonConvert.SerializeObject(Model,ss)as string);
            }
        }

        var modelview = [  @sJSON  ];
    </script>
    <div id="divpupup">
        @RenderBody()
    </div>
</body>
</html>
